var supplyOrderMixin = function (type) {
  var span;
  if (type === 'create') {
    span = 18;
  } else if (type === 'query') {
    span = 23;
  }
  return {
    methods: {
      spanMethod: function (option) {
        var row = option.row;
        if (row.rowType !== 'personLiable') {
          return [1, 1];
        }
        var column = option.column;
        if (column.columnKey === 'personLiable') {
          return [1, span];
        }

        var columnIndex = option.columnIndex;
        if (columnIndex >= span) {
          return [1, 1];
        }
        return [0, 0];
      },

      getRowClassName: function (option) {
        var row = option.row;
        if (row.rowType !== 'personLiable') {
          return '';
        }
        return 'perosn-row';
      }
    }
  };
};
